<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 22/01/24/0024
  Time: 上午 10:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>
<hr/>
<h3>字符串传参！</h3>
<%--    --%>
<form action="/form/StringValue" method="post">
    姓名：<input type="text" name="name"/>
    <button>提交按钮</button>
</form>
<hr/>
<h3>数组传参！</h3>
<form action="/form/ArrayValue" method="post">
    所选id：<input type="checkbox" name="ids" value="zero"/>0
    <input type="checkbox" name="ids" value="one"/>1
    <input type="checkbox" name="ids" value="two"/>2
    <button>提交按钮</button>
</form>
<hr/>
<h3>List 传参！</h3>
<form action="/form/ListValue" method="post">
    所选id：<input type="checkbox" name="ids" value="0"/>0
    <input type="checkbox" name="ids" value="1"/>1
    <input type="checkbox" name="ids" value="2"/>2
    <button>提交按钮</button>
</form>
<hr/>
<h3>Map 传参！</h3>
<form action="/form/MapValue" method="post">
    用户名：<input type="text" name="username" />
    密码：<input type="password" name="password" />
    邮箱：<input type="email" name="email" />
    <button>提交按钮</button>
</form>
<hr/>
<h3>User对象 传参！</h3>
<form action="/form/UserValue" method="post">
    用户名：<input type="text" name="name" />
    年龄：<input type="number" name="age" />
    邮箱：<input type="email" name="email" />
    性别：<input type="radio" name="sex" value="0"> 男
    <input type="radio" name="sex" value="1"> 女
    <button>提交按钮</button>
</form>
<hr/>
<h3>ClazzRoom对象 传参！</h3>
<form action="/form/ClazzUserValue" method="post">
    班级名称：<input type="text" name="clazzName">
    班级编号：<input type="text" name="num">
    <br>
    用户名：<input type="text" name="users[0].name" />
    年龄：<input type="number" name="users[0].age" />
    邮箱：<input type="email" name="users[0].email" />
    性别：<input type="radio" name="users[0].sex" value="0"> 男
    <input type="radio" name="users[0].sex" value="1"> 女
    <br>
    用户名：<input type="text" name="users[1].name" />
    年龄：<input type="number" name="users[1].age" />
    邮箱：<input type="email" name="users[1].email" />
    性别：<input type="radio" name="users[1].sex" value="0"> 男
    <input type="radio" name="users[1].sex" value="1"> 女
    <button>提交按钮</button>
</form>
<hr/>
</body>
</html>

